/*
 * @Author: czy
 * @Date: 2021-07-13 08:35:26
 * @LastEditTime: 2021-07-15 15:12:06
 */
#include "sys/type.h"
#include "sys/config.h"

#include "../lib/scheduler.h"

extern void FCFS_task_priority(PCB *task);
extern void SJF_task_priority(PCB *task);
extern void RR_task_priority(PCB *task);

void task_priority(PCB *task)
{
    switch (ALGORITHM)
    {
    case FCFS:
        FCFS_task_priority(task);
        break;
    case SJF:
        SJF_task_priority(task);
        break;
    case RR:
        RR_task_priority(task);
        break;
    default:
        break;
    }
}
